package chapter7;

/**
 * Created by lenovo on 2016/3/22.
 */

public class Human implements Swimmer {
    private String name;
    public Human(String name){
        this.name=name;
    }
    public String getName(){
        return name;
    }
    @Override
    public  void swim(){
        System.out.printf("人类 %s 游泳%n",name);
    }
}


class Human1 {
    protected String name;
    public Human1(String name){
        this.name=name;
    }
    public String getName(){
        return name;
    }

}
